/**
 * Created by qian.zhou on 2017/2/23.
 */

var React = require('react');

module.exports = React.createClass({
    getInitialState:function(){
        return {
            img:''
        }
    },
    componentDidMount:function(){
        if(this.props.img){
            this.setState({img:this.props.img});
        }
    },
    render:function(){
        return (
            <div className="item">
                <div className="pro-img">
                    <img src={this.state.img} />
                </div>
                <div className="pro-img-title">

                </div>
            </div>
        )
    }

});